﻿@using BTCPayServer.Plugins.Subscriptions
@using BTCPayServer.Services
@model CreateOfferingViewModel

@{
    ViewData.SetLayoutModel(new LayoutModel(nameof(SubscriptionsPlugin), StringLocalizer["New offering"]));
}

<form method="post">
    <div class="sticky-header">
        <h2>@ViewData["Title"]</h2>
        <div>
            <button cheat-mode="true" type="submit" name="command" value="create-fake" class="btn btn-outline-info" id="fake-offering-button">
                Create fake offering
            </button>
            <a><input id="page-primary" type="submit" value="Create" class="btn btn-primary" /></a>
        </div>
    </div>

    <partial name="_StatusMessage" />
    <div class="row">
        <div class="col-xl-8 col-xxl-constrain">
            @if (!ViewContext.ModelState.IsValid)
            {
                <div asp-validation-summary="ModelOnly"></div>
            }
            <div class="form-group">
                <label asp-for="Name" class="form-label" data-required></label>
                <input asp-for="Name" class="form-control" required />
                <span asp-validation-for="Name" class="text-danger"></span>
            </div>
        </div>
    </div>
</form>
